import axios from 'axios'

let baseUrl = 'http://localhost:5000'

// 首页
export function getInterfaceData(url){
  return axios.get(`${baseUrl}${url}`)
}
export function getHotTags(type, source){
  return axios.get(`${baseUrl}/search-tags?type=${type}&source=${source}`)  
}
export function getHotMoviesType(type, tag){
  return axios.get(`${baseUrl}/search-subjects?type=${type}&tag=${tag}`)
}

// 选电影模块
export function getChoiceMovieTag(type){
  return axios.get(`${baseUrl}/search-tags?type=${type}`)
}
